import Colors from '@/common/color.js'
// 1待报价2已报价3报价待审核4报价未通过5待取走6维修中7放弃维修8待确认送回科室9配送中
import SendRepairRouterConfig from '@/sendRepair/routerConfig.js'
export const factoryState = {

	stateValue: {
		/**
		 * 待报价
		 */
		ToBeQuoted: 1,
		/**
		 * 已报价
		 */
		Quotation: 2,
		/**
		 * 报价待审核
		 */
		QuotationToBeReviewed: 3,
		/**
		 * 报价未通过 => 重新报价
		 */
		QuotationFailed: 4,
		/**
		 * 待取走
		 */
		RoBeTakenAway: 5,
		/**
		 * 维修中
		 */
		UnderRepair: 6,
		/**
		 * 放弃维修
		 */
		AbandonRepair: 7,
		/**
		 * 待确认送回科室
		 */
		ToBeConfirmedToReturnToTheDepartment: 8,
		/**
		 * 配送中
		 */
		Distribution: 9

	},

	CardSourceState: {
		/**
		 * 已修好
		 */
		ToRepair: 1,
		/**
		 * 未修好
		 */
		NotRepair: 2,
		/**
		 * 厂家无法维修
		 */
		FactoryCantNotRepair: 3,
		/**
		 * 科室放弃维修
		 */
		DepartmentGiveUpRepair: 4,
		/**
		 * 厂家放弃报价
		 */
		FactoryGiveUpQuote: 5,
		/**
		 * 报价审核不通过
		 */
		QuoteReviewNot: 6
	},
	CardSourceStateText: {
		1: '已修好',
		2: '未修好',
		3: '无法维修',
		4: '放弃维修',
		5: '放弃报价',
		6: '审核不通过'
	},


	// 1待报价2已报价3报价待审核4报价未通过5待取走6维修中7放弃维修8待确认送回科室9配送中
	colors: {
		1: Colors.red,
		2: Colors.green,
		3: Colors.yellow,
		4: Colors.red,
		5: Colors.red,
		6: Colors.blue,
		7: Colors.red,
		8: Colors.red,
		9: Colors.yellow,
	},

	// 厂家
	buttonParams: {
		// 1待报价2已报价3报价待审核4报价未通过5待取走6维修中7放弃维修8待确认送回科室9配送中
		1: {
			emitCode: 'quote',
			text: "报价",
			detailPageButtonText: '报价',
			//详情页
			navDetailPath: SendRepairRouterConfig.Factory.Quote,
			//操作页
			navHandlePath: SendRepairRouterConfig.Factory.SubmitQuote,
		},
		2: {
			emitCode: 'updateQuote',
			detailPageButtonText: '修改报价',
			//详情页
			navDetailPath: SendRepairRouterConfig.Factory.Quote,
			//操作页
			navHandlePath: SendRepairRouterConfig.Factory.SubmitQuote,
			text: "修改报价"
		},
		3: {
			emitCode: '',
			//详情页
			navDetailPath: SendRepairRouterConfig.Factory.Quote,
			//操作页
			navHandlePath: SendRepairRouterConfig.Factory.SubmitQuote,
			text: "修改报价",
			// 详情页操作按钮
			detailPageButtonText: '修改报价'
		},
		4: {
			emitCode: 'aginQuote',
			//详情页
			navDetailPath: SendRepairRouterConfig.Factory.Quote,
			//操作页
			navHandlePath: SendRepairRouterConfig.Factory.SubmitQuote,
			text: "重新报价",
			detailPageButtonText: '重新报价'
		},
		5: {
			emitCode: 'devicePickUp',
			//详情页
			navDetailPath: SendRepairRouterConfig.Factory.PickUpDetail,
			//操作页
			navHandlePath: SendRepairRouterConfig.Factory.PickUpConfirm,
			text: "取走"
		},
		6: {
			emitCode: 'completeRepair',
			//详情页
			navDetailPath: SendRepairRouterConfig.Factory.RepairDetail,
			//操作页
			navHandlePath: SendRepairRouterConfig.Factory.RepairComplete,
			text: "完成维修"
		},
		7: {
			emitCode: 'repairSettlement',
			//详情页
			navDetailPath: SendRepairRouterConfig.Factory.RepairDetail,
			//操作页
			navHandlePath: SendRepairRouterConfig.Factory.Settlement,
			text: "维修结算"
		},
		8: {
			emitCode: 'devicePickUp',
			//详情页
			navDetailPath: SendRepairRouterConfig.Factory.ReturnDetail,
			//操作页
			navHandlePath: '',
			text: "待确认送回科室"
		},
		9: {
			emitCode: 'service',
			//详情页
			navDetailPath: SendRepairRouterConfig.Factory.ReturnDetail,
			//操作页
			navHandlePath: SendRepairRouterConfig.Factory.SubmitService,
			text: "送达"
		},

	},

}
